package com.zhouzj.task.consumer.rpc;

import com.zhouzj.task.dubbo.api.TaskService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @Author: zhouzhijun
 * @Date: 2021/7/21 15:18
 */
@Component
public class ConsumerComponent {
    @Reference(timeout = 100000)
    private TaskService taskService;

    public void methodA() {
        taskService.methodA();
    }

    public void methodB() {
        taskService.methodB();
    }

    public void methodC() {
        taskService.methodC();
    }
}
